﻿using System;
using Microsoft.EntityFrameworkCore;
using Entity;

namespace Reopsitory
{
    public class MsDbContext:DbContext
    {
        public MsDbContext(DbContextOptions<MsDbContext> options):base(options)
        {

        }

        /// <summary>
        /// 用户注册
        /// </summary>
        public DbSet<UserInfo> userInfos { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<RoleInfo> roleInfos { get; set; }

        /// <summary>
        /// 角色菜单表
        /// </summary>
        public DbSet<RoleMenuInfo> roleMenuInfos { get; set; }

        /// <summary>
        /// 菜单表
        /// </summary>
        public DbSet<MenuInfo> menuInfos { get; set; }

        /// <summary>
        /// 用户角色表
        /// </summary>
        public DbSet<AdminRoleInfo> adminRoleInfos { get; set; }
    }
}
